//
//  OrderParticularsTableViewCell.m
//  LogisticsFollow
//
//  Created by Faith on 2017/1/11.
//  Copyright © 2017年 manridy. All rights reserved.
//

#import "OrderParticularsTableViewCell.h"

@interface OrderParticularsTableViewCell ()
@property (weak, nonatomic) IBOutlet UILabel *orderCodeLabel;
@property (weak, nonatomic) IBOutlet UILabel *customerNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *customerNumberLabel;
@property (weak, nonatomic) IBOutlet UILabel *deliveryNumberLabel;
@property (weak, nonatomic) IBOutlet UILabel *startCityLabel;
@property (weak, nonatomic) IBOutlet UILabel *endCityLabel;
@property (weak, nonatomic) IBOutlet UILabel *fixedDateLabel;
@property (weak, nonatomic) IBOutlet UILabel *statusLabel;
@property (weak, nonatomic) IBOutlet UILabel *consigneeUnitLabel;
@property (weak, nonatomic) IBOutlet UILabel *consigneeLabel;
@property (weak, nonatomic) IBOutlet UILabel *telNumberLabel;
@property (weak, nonatomic) IBOutlet UILabel *deliveryAddressLabel;
@property (weak, nonatomic) IBOutlet UILabel *carrierLabel;
@property (weak, nonatomic) IBOutlet UILabel *carrierTelLabel;
@property (weak, nonatomic) IBOutlet UILabel *goodsMoneyLabel;
@property (weak, nonatomic) IBOutlet UILabel *goodsNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *goodsCountLabel;
@property (weak, nonatomic) IBOutlet UILabel *goodsWeightLabel;
@property (weak, nonatomic) IBOutlet UILabel *goodsVolumeLabel;

@end

@implementation OrderParticularsTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setModel:(OrderResultModel *)model
{
    _model = model;
    self.orderCodeLabel.text = model.orderCode;
    self.customerNameLabel.text = model.customerName;
    self.customerNumberLabel.text = model.customerNumber;
    self.deliveryNumberLabel.text = model.deliveryNumber;
    self.startCityLabel.text = model.startCity;
    self.endCityLabel.text = model.endCity;
    self.fixedDateLabel.text = model.fixedDate;
    switch (model.status) {
        case 0:
            self.statusLabel.text = @"待确认";
            break;
        case 1:
            self.statusLabel.text = @"代签收";
            break;
        case 2:
            self.statusLabel.text = @"已签收";
            break;
            
        default:
            break;
    }
    self.consigneeUnitLabel.text = model.consigneeUnit;
    self.consigneeLabel.text = model.consignee;
    self.telNumberLabel.text = model.telNumber;
    self.deliveryAddressLabel.text = model.deliveryAddress;
    self.carrierLabel.text = model.carrier;
    self.carrierTelLabel.text = model.carrierTel;
    self.goodsMoneyLabel.text = model.goodsMoney;
    self.goodsNameLabel.text = model.goodsName;
    self.goodsCountLabel.text = model.goodsCount;
    self.goodsWeightLabel.text = model.goodsWeight;
    self.goodsVolumeLabel.text = model.goodsVolume;
    
}

@end
